/*************************************************************************
	> File Name: test6.c
	> Author: H.M. Lau
	> Mail: hm.lau@outlook.com
	> Created Time: 2023/08/30 16:48
 ************************************************************************/

#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>

int main() {
    printf("hello printf\n");
    fprintf(stdout, "hello fprintf\n");
    const char *s = "hello puts\n";
    fputs(s, stdout);

    const char *ss = "hello write\n";
    write(1, ss, strlen(ss));
    fork();
    fflush(stdout);
    return 0;
}
